package com.znsd.zl.app.openfeigin.reservation;


import com.znsd.zl.utils.R;
import com.znsd.zl.vo.req.SendSmsReqVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;


/**
 * @ClassName SysUserFeign
 * @Description TODO
 * @Author jbb
 * @Date 2020/8/22 1:22
 * @Version v1.0
 */
@FeignClient(value = "zlhouse-sys")
@Component
public interface SysUserFeign {

    /**
     * 远程调用获取登录用户信息
     * @return
     */
    @GetMapping("/sys/user/info")
    R info();

    /**
     * 发送短信
     * @param reqVo  短信发送VO
     * @return  发送成功 code:0 失败 500
     */
    @PostMapping("/app/sms/sendReservedSms")
    R sendReservedSms(SendSmsReqVo reqVo) ;

}
